//
//  BVCategoryReusableView.m
//  BuyVegetable
//
//  Created by yushanchang on 16/11/1.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVCategoryReusableView.h"

@implementation BVCategoryReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        UIView *lineViewOne = [[UIView alloc] initWithFrame:CGRectMake(10, 5, ScreenW-80-20, 0.5)];
        lineViewOne.backgroundColor = [UIColor BVButtonGrayColor];
        [self addSubview:lineViewOne];
        
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(lineViewOne.frame), lineViewOne.width, 30)];
        titleLabel.font = SYSTEM_FONT(15);
        titleLabel.textColor = [UIColor BVBaseTextBlackColor];
        titleLabel.text = @"济南银鼎网络科技";
        [self addSubview:titleLabel];
        self.titleLabel = titleLabel;
        
        UIView *lineViewTwo = [[UIView alloc] initWithFrame: CGRectMake(10,CGRectGetMaxY(titleLabel.frame), lineViewOne.width, 0.5)];
        lineViewTwo.backgroundColor = [UIColor BVButtonGrayColor];
        [self addSubview:lineViewTwo];
    }
    return self;
}
@end
